/**
 * Copyright (c) 2005-2016, yinwer81 (yinwer81@aliyun.com)
 *
 * Licensed under the Apache License, Version 2.0
 */
package com.nozturn.throne.dao;

import java.util.List;

import com.nozturn.throne.entity.Client;

public interface ClientDao {

    Client createClient(final Client client);

    int updateClient(final Client client);

    int deleteClient(final Long pk);

    Client findOne(final Long pk);

    Client findByClientId(final String clientId);

    Client findByClientSecret(final String clientSecret);

    List<Client> findByClient(final Client client);

    List<Client> findAll();

}
